public class Electronic extends Product {
    private String color;
    private String type;

    @Override
    public void displayInfo() {
        super.displayInfo();
        System.out.println(this.color + " " + this.type);
    }

    public Electronic() {
    }

    public Electronic(String color, String type) {
        this.color = color;
        this.type = type;
    }

    /**
     * 获取
     * @return color
     */
    public String getColor() {
        return color;
    }

    /**
     * 设置
     * @param color
     */
    public void setColor(String color) {
        this.color = color;
    }

    /**
     * 获取
     * @return type
     */
    public String getType() {
        return type;
    }

    /**
     * 设置
     * @param type
     */
    public void setType(String type) {
        this.type = type;
    }

    public String toString() {
        return "Electronic{color = " + color + ", type = " + type + "}";
    }
}
